package com.test;

import com.pojo.Orders;
import com.test.java.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.testng.annotations.Test;

public class OrderTest {
    @Test
    public void findOrdersTest() {
        SqlSession sqlSession = MyBatisUtils.getSession();
        Orders orders = sqlSession.selectOne("findOrdersWithPorduct",1);
        System.out.println(orders);
        sqlSession.close();
    }
}
